package com.cn.wanxi.service;/**
 * @BelongsProject: online
 * @BelongsPackage: com.cn.wanxi.service
 * @Author: lld
 * @CreateTime: 2020-03-10 21:36
 * @Description: service
 */

import com.cn.wanxi.dao.QuestionsPaperDao;
import com.cn.wanxi.entity.QuestionsPaperEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName Questions_paperService
 * @Author lld
 * @Date 2020/3/10 21:36
 * @Version 1.0
 **/
@Service
public class QuestionsPaperService {
    @Autowired
    private QuestionsPaperDao questions_paperDao;

    public List<QuestionsPaperEntity> findAll(QuestionsPaperEntity questions_paperEntity) {
        return questions_paperDao.findAll(questions_paperEntity);
    }

    public int add(QuestionsPaperEntity questionsPaperEntity) {
        return questions_paperDao.add(questionsPaperEntity);
    }

    public int del(QuestionsPaperEntity questions_paperEntity) {
        return questions_paperDao.del(questions_paperEntity);
    }

    public int update(QuestionsPaperEntity questions_paperEntity) {
        return questions_paperDao.update(questions_paperEntity);
    }

    public List<QuestionsPaperEntity> getById(QuestionsPaperEntity questions_paperEntity) {
        return questions_paperDao.getById(questions_paperEntity);
    }
}
